#ifndef NEWBOX_H
#define NEWBOX_H

#include <QDialog>

namespace Ui {
    class NewBox;
}

class NewBox : public QDialog
{
    Q_OBJECT

public:
    explicit NewBox(QWidget *parent = 0);
    ~NewBox();

    bool isAccepted()       { return myAccepted;    }
    bool isDestroyed()      { return myDestroyed;   }

    QString& GetMapName()   { return myMapName;     }
    QString& GetTileName()  { return myTileName;    }

    int GetWidth()          { return myWidth;       }
    int GetHeight()         { return myHeight;      }

    int GetTileSize()       { return tSize;        }



private:
    Ui::NewBox *ui;
    bool myAccepted, myDestroyed;
    QString myTileName, myMapName;
    int myWidth, myHeight, tSize;



private slots:
    void on_toolButton_clicked();
    void on_buttonBox_rejected();
    void on_buttonBox_accepted();
};

#endif // NEWBOX_H
